#!/bin/bash

dateStr=`date +%Y%m%d`
hive -e "use mydb;load data inpath '/azkaban/user_clicks/${dateStr}/' into table user_clicks partition(dt='${dateStr}');"